<div #self *ngIf="isButton" class="el-checkbox-group">
    <el-checkbox-button *ngFor="let checkbox of checkboxList;first as first;last as last " 
        [isFirst]='first'
        [isLast]='last'
        [name]="checkbox.name"
        [label]="checkbox.label"
        [disabled]="checkbox.disabled"
        [checked]="checkbox.checked"
        [indeterminate]="checkbox.indeterminate"
        [model]='model'
        (modelChange)="handleModelChange($event)"
        isGroup="true"
        [fill]="fill"
        [size]="size"
        [textColor]="textColor"
        [max]='max'
        [min]='min'
    >{{checkbox.label}}</el-checkbox-button>
</div>

<div #self *ngIf="!isButton" class="el-checkbox-group">
  <el-checkbox *ngFor="let checkbox of checkboxList;first as first"
      [name]="checkbox.name"
      [label]="checkbox.label"
      [disabled]="checkbox.disabled"
      [checked]="checkbox.checked"
      [indeterminate]="checkbox.indeterminate"
      [(model)]='model'
      isGroup="true"
      [max]='max'
      [min]='min'
  >{{checkbox.label}}</el-checkbox>
</div>

